package cn.imnu.lowcodeformgeneratorbackend.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Schema(description = "登录请求参数")
public class LoginRequest {

    @Schema(description = "登录请求参数", required = true, example = "testuser")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "登录请求参数", required = true, example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;
}